package com.zygk.locationtool.model;

import com.zygk.library.util.ListUtils;
import java.util.List;

/**
 * Created by Wikison on 2018/12/10.
 */
public class M_Town {
  private String TownID;  // 镇ID
  private String TownName;  // 镇名称
  private List<M_Station> StationList; // 站点列表
  private int StationCount;  //站点数量

  public String getTownID() {
    return TownID;
  }

  public void setTownID(String townID) {
    TownID = townID;
  }

  public String getTownName() {
    return TownName;
  }

  public void setTownName(String townName) {
    TownName = townName;
  }

  public List<M_Station> getStationList() {
    return StationList;
  }

  public void setStationList(List<M_Station> stationList) {
    StationList = stationList;
  }

  public int getStationCount() {
    if (!ListUtils.isEmpty(StationList)) {
      return StationList.size();
    }
    return StationCount;
  }

  public void setStationCount(int stationCount) {
    StationCount = stationCount;
  }
}
